Skip to content

Fixes: #3869: Optimize solution #2 for Euler's Problem #74 #3872

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Fixes: #3869: Optimize solution #2 for Euler's Problem #74 #3872

wants to merge 1 commit into from

Conversation

tacitvenom
Copy link

Describe your change:

Github Issue #3869: Optimize solution #2 for Euler's Problem #74
I have only tweaked the helper functions, primarily for finding the factorial by keeping a cache, since the factorials are only needed for a limited number of numbers

  • Add an algorithm?
  • Fix a bug or typo in an existing algorithm?
  • Documentation change?

Checklist:

  • [
  • [x ] This pull request is all my own work -- I have not plagiarized.
  • [x ] I know that pull requests will not be merged if they fail the automated tests.
  • [x ] This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • [ x] All new Python files are placed inside an existing directory.
  • [x ] All filenames are in all lowercase characters with no spaces or dashes.
  • [x ] All functions and variable names follow Python naming conventions.
  • [x ] All function parameters and return values are annotated with Python type hints.
  • [x ] All functions have doctests that pass the automated testing.
  • [x ] All new algorithms have a URL in its comments that points to Wikipedia or other similar explanation.
  • [ x] If this pull request resolves one or more open issues then the commit message contains Fixes: #{$ISSUE_NO}.

@dhruvmanila
Copy link
Member

Thank you for trying but this does not fix the issue. Please time the program first before opening a pull request.

@tacitvenom
Copy link
Author

Aah, shoot.
Apologies, I was too sleepy and too eager to open a PR. I have made the changes I had in mind now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants